<script src="/statics/js/layer.js"></script>
<!-- 头部开始 -->
<div class="header">
<!--    <div class="header_r"><img src="<?=session('loginImg')?>" width="30"></div>-->
    <div class="header_l"><a href="/order/slist"></a></div>
    <div class="header_m">订单详情</div>
</div>
<!-- 头部结束 -->

<!--订单详情开始-->
<div class="dingdan" style="margin-bottom:10px">
    <div class="dingdan-xx">
        <p class="dingdan-xx-p">订单编号：<?=I('get.orderId')?></p>
        物流单号：{{$express['express_num']|default='无物流单号'}}
        <div class="dingdan-xx-zt"><?=$ostatus[$orderData['order_status']]?></div>
    </div>
    <?php if($orderData['order_status'] == '6' && $orderData['refund_expressnum']){?>
    <div class="dingdan-xx">退货信息：<?=$orderData['refund_expressname']?>&nbsp;/&nbsp;<?=$orderData['refund_expressnum']?></div>
    <?php }?>
    <div class="dingdan-list">
        <div class="dingdan-list-zt"><i>商品信息</i></div>
        <?php if($collectData){$nums = 0;foreach($collectData AS $val){?>
        <!--<ul>-->
            <!--<li class="dingdan-list-li1"><a href="/goods/detail/id/<?=$val['goods_id']?>/sek/<?=mySpreadSek($val['biz_cust_id'])?>"><img src="<?=transUrl($val['goods_pic'])?>" width="90%" height="90%"></a></li>-->
            <!--<li class="dingdan-list-li2"><a href="/goods/detail/id/<?=$val['goods_id']?>/sek/<?=mySpreadSek($val['biz_cust_id'])?>"><?=$val['goods_title']?><p>规格：<?=$val['goods_attr']?></p></a></li>-->
            <!--<li class="dingdan-list-li3"><?=$val['pay_price']?>元<p>×<?=$val['pay_nums']?></p></li>-->
        <!--</ul>-->
        <div class="ck-tax">
            <ul>
                <li class="dingdan-list-li1"><a href="/goods/detail/id/<?=$val['goods_id']?>/sek/<?=mySpreadSek($val['biz_cust_id'])?>"><img src="<?=transUrl($val['goods_pic'])?>" width="90%" height="90%"></a></li>
                <li class="dingdan-list-li2"><a href="/goods/detail/id/<?=$val['goods_id']?>/sek/<?=mySpreadSek($val['biz_cust_id'])?>"><?=$val['goods_title']?><p>规格：<?=$val['goods_attr']?></p ></a></li>
                <li class="dingdan-list-li3">¥ <?=$val['pay_price']?><p>×<?=$val['pay_nums']?></p ></li>
                <span class="dingdan-tax">税费：￥<?=number_format($val['goods_taxes_price']*$val['pay_nums'],2,'.','')?></span>
            </ul>
            <div class="tax">据国家政策规定，本品适用于跨境综合税：<?=$val['rate']*100?>%</div>
        </div>
        <?php $nums += $val['pay_nums'];}}?>
        <!--<div class="dingdan-list-order"><span>合计：<i>¥ <?=$orderData['order_amount']?></i> </span>共 <?=$nums?> 件商品</div>-->
        <div class="dingdan-list-order">
            <span>合计：<i>¥ <?=$orderData['order_amount']?></i><br /><em>含运费：￥<?=$orderData['order_express']?:'0.00'?> 税费￥<?=$orderData['order_taxes']?></em></span>共 <?=$nums?> 件商品
        </div>
    </div>
</div>

<!--订单详情结束-->
<div class="poper-xx" style="margin-bottom:0;">
	<div class="dingdan-list-zt" style="border-bottom:1px dotted #e5e5e5;margin-bottom:10px;height: 32px;line-height: 32px;"><i>收货信息</i></div>
	<p class="poper-xx-p">收货人：<?=$orderData['receive_name']?>　　手机号码：<?=$orderData['receive_mobile']?></p >
    <p>收货地址：<?=$orderData['receive_provice'].$orderData['receive_city'].$orderData['receive_address']?></p >
</div>

<!--查看物流-->
<if condition="!in_array($orderData['order_status'],array('0','1','-1')) and $express">
    <div class="wuliu">
        <a href="http://m.kuaidi100.com/index_all.html?type={{$express['express_name']}}&postid={{$express['express_num']}}&callbackurl=javascript:history.back(-1)">查看物流</a>
    </div>
</if>

<?php if($orderData['refund_mark'] && in_array($orderData['order_status'],array('6','7','8'))){?>
<div class="poper-xx">
	<div class="dingdan-list-zt" style="border-bottom:1px dotted #e5e5e5;margin-bottom:10px;height: 32px;line-height: 32px;"><i>客服留言</i></div>
    <p><?=$orderData['refund_mark']?></p >
</div>
<?php }?>

<div style="height:60px"></div>

<div class="fiex nav"> <a class="icon-shouye fiex_on" href="/index/index/sek/<?=$sek?>"><br />
  首页</a> <a class="icon-fenlei" href="/cate/main/sek/<?=$sek?>"><br />
  分类</a> <a class="icon-gouwu" href="/cart/index/sek/<?=$sek?>"><span id="cartSum"></span><br />
  购物车</a> <a class="icon-geren" href="/index/user/sek/<?=$sek?>"><br />
  用户中心</a> </div>
 <script>
 $(function(){
     cartSum();
 });
 </script>
<script type="text/javascript">
    $(document).ready(function(){
        $('.dingdan-tax').click(function(){
            var tax1 = $(this).attr("class");
            if(tax1=='dingdan-tax'){
                $(this).parents('.ck-tax').find('.tax').slideToggle();
                $(this).removeClass('dingdan-tax').addClass('dingdan-tax2')
            }else{
                $(this).parents('.ck-tax').find('.tax').slideToggle();
                $(this).removeClass('dingdan-tax2').addClass('dingdan-tax')
            }

        })
    })
</script>